import requests

def getPic(url):

    response = requests.get(url)
    print('download completed : ' + url)
    file_name = url.rsplit('-')[-1]
    with open(file_name, mode='wb') as fo:
        fo.write(response.content)

if __name__ == '__main__':
    urls = [
        'https://n.sinaimg.cn/news/transform/590/w240h350/20201025/c666-kavypmr1059691.png',
        'https://n.sinaimg.cn/fashion/590/w240h350/20201025/429f-kavypmr0688329.jpg',
        'https://n.sinaimg.cn/auto/590/w240h350/20201022/6b85-kavypmq2239246.jpg'
    ]

    for i in urls:
        getPic(i)